package cn.itcast.tanhua.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "tanhuaQuanzi", shards = 6, replicas = 2)
public class QuanZiVo implements java.io.Serializable {

    private static final long serialVersionUID = 4133419501261237769L;

    @Id
    private String id; //动态id
    @Field(type = FieldType.Long)
    private Long userId; //用户id
    @Field(type = FieldType.Keyword)
    private String avatar; //头像
    @Field(type = FieldType.Text)
    private String nickname; //昵称
    @Field(type = FieldType.Keyword)
    private String gender; //性别 man woman
    @Field(type = FieldType.Integer)
    private Integer age; //年龄
    private String[] tags; //标签
    @Field(type = FieldType.Text)
    private String textContent; //文字动态
    private String[] imageContent; //图片动态
    private String distance; //距离
    private String createDate; //发布时间 如: 10分钟前
    private Integer likeCount; //点赞数
    private Integer commentCount; //评论数
    private Integer loveCount; //喜欢数
    private Integer hasLiked; //是否点赞（1是，0否）
    private Integer hasLoved; //是否喜欢（1是，0否）
    private Integer hasBlack; //是否拉黑

}